package org.springframework.howelly.controllers;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.howelly.services.GastoService;
import org.springframework.stereotype.Controller;

/**
 * A controller handling dwr requests .
 */
@Controller
public class DwrController {

    public GastoService gastoService;

    @Autowired
    public DwrController(GastoService gastoService) {
	this.gastoService = gastoService;
    }

    public String getCuitByName(String name) {
	return gastoService.getCuitByName(name);

    }

}
